package com.yjc.drygoods.ware.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjc.common.utils.PageUtils;
import com.yjc.common.utils.Query;
import com.yjc.drygoods.ware.dao.SupplierDao;
import com.yjc.drygoods.ware.entity.SupplierEntity;
import com.yjc.drygoods.ware.service.SupplierService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author yjc
 * @create 2022-10-24 19:51
 */
@Service("supplierService")
public class SupplierServiceImpl extends ServiceImpl<SupplierDao, SupplierEntity> implements SupplierService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SupplierEntity> page = this.page(
                new Query<SupplierEntity>().getPage(params),
                new QueryWrapper<SupplierEntity>()
        );

        return new PageUtils(page);
    }
}
